package weka.groupminers;

import java.util.ArrayList;
import java.util.List;

public class Group {
	
	private List<Integer> users;
	
	public Group() {
		this.users = new ArrayList<Integer>();
	}


	public Group(int n) {
		this.users = new ArrayList<Integer>();
		users.add(n);
	}

	public Group clone(){
		Group g = new Group();
		g.setUsers(users);
		return g;
	}
	
	public List<Integer> getUsers() {
		return users;
	}

	public void setUsers(List<Integer> users) {
		this.users = users;
	}

	public Group unite(Group group2) {
		Group g = new Group();
		List<Integer> users = new ArrayList<Integer>(); 
		users.addAll(this.users);
		users.addAll(group2.getUsers());
		g.setUsers(users);
		return g;
	}
	
}
